<?php
session_start();
if(!isset($_SESSION['youdo_userid'])) {
	header("Location: welcome.php");
}
$user_id = $_SESSION['youdo_userid'];
?>
<html>
<head>
<link rel="stylesheet" href="css/application.css" type="text/css" media="screen" charset="utf-8"/>
<script type="text/javascript" src="js/jquery-ui-1.8/js/jquery-1.4.2.min.js" charset="utf-8"></script>
<script type="text/javascript" src="js/jquery-ui-1.8/js/jquery-ui-1.8.custom.min.js" charset="utf-8"></script>
<script type="text/javascript" src="js/jquery.easing.1.3.js" charset="utf-8"></script>
<script type="text/javascript" src="js/jquery.simplemodal-1.3.5.min.js" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
var youdo_user_id = <?php echo $user_id; ?>;
</script>
<script type="text/javascript" src="js/application.js" charset="utf-8"></script>
</head>
<body>
<div id="toolbar">
<div class="user">
	<p class="username">
	<?php
	require_once("php/mysql.php");
	$query = "select displayname from users where id = $user_id";
	$result = mysql_query($query);
	$row = mysql_fetch_assoc($result);
	echo $row['displayname'];
	?>
	</p>
	<a href="php/logout.php">logout</a>
</div>

<h1 class="header"><img src="img/header.png"/></h1>
</div>
<div id="workspace"> 
	<div class="lists">
		<div class="lists-dropdown">
			<ul class="todolist-list">
			</ul>
		<p class="lists-add-button"><a href="#">New List</a></p>
		</div>
		<p class="lists-show-button"><a href="#">My Lists</a></p>
	</div>
</div>
<div id="modal-mask"> </div>
<div id="modal-window"> </div>
</body>
</html>
